import request from '@/utils/request'

export function selectTableFromSystem(params) {
    return request({
        url: '/gen/selectTableFromSystem',
        method: 'get',
        params
    })
}

export function selectTableFromDb(params) {
    return request({
        url: '/gen/selectTableFromDb',
        method: 'get',
        params
    })
}

export function importTableToSystem(data) {
    return request({
        url: '/gen/importTableToSystem',
        method: 'post',
        data
    })
}

export function deleteTableFromSystem(params) {
    return request({
        url: '/gen/deleteTableFromSystem',
        method: 'delete',
        data: params
    })
}

export function selectTableInfoById(params) {
    return request({
        url: '/gen/selectTableInfoById',
        method: 'get',
        params
    })
}

export function updateGenTable(data) {
    return request({
        url: '/gen/updateGenTable',
        method: 'post',
        data
    })
}

